package Leason3;

import java.util.Arrays;
import java.util.Scanner;

public class Task3 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		System.out.println("Please enter a number:");
		
		int a = sc.nextInt();
		int b = a;
		int c;
		int k=0;
		int h=1;
		
		int[] fib = new int[10];
		
		for (int i = 0; i <= (fib.length/2)-1; i++)
		{
			fib[k] = a;
			fib[h] = b;
			
			c=a+b;
			a = c;
			b += c;
			h += 2;
			k += 2; 
		}	
		System.out.println(Arrays.toString(fib));
	}

}
